# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)


### hello-jni

include $(CLEAR_VARS)

LOCAL_MODULE    := my-jni
LOCAL_SRC_FILES := my-jni/my-jni.c

include $(BUILD_SHARED_LIBRARY)

### H264 Decoder

include $(CLEAR_VARS)

LOCAL_MODULE    := H264Android
LOCAL_SRC_FILES :=H264Decoder/cabac.cpp H264Decoder/common.cpp H264Decoder/dsputil.cpp H264Decoder/golomb.cpp H264Decoder/h264.cpp H264Decoder/h264utils.cpp H264Decoder/mpegvideo.cpp H264Decoder/H264Android.cpp

include $(BUILD_SHARED_LIBRARY)


### H264 Encoder

include $(CLEAR_VARS)

LOCAL_MODULE    := H264Encoder
LOCAL_SRC_FILES := H264Encoder/H264Encoder.c

include $(BUILD_SHARED_LIBRARY)


##### AMR #####amr_codec

include $(CLEAR_VARS)

LOCAL_MODULE    := amr_encoder
LOCAL_SRC_FILES := amr_codec/amr_encoder.c amr_codec/sp_enc.c amr_codec/interf_enc.c

include $(BUILD_SHARED_LIBRARY)


include $(CLEAR_VARS)

LOCAL_MODULE    := arm_decoder
LOCAL_SRC_FILES := amr_codec/arm_decoder.c amr_codec/sp_dec.c amr_codec/interf_dec.c

include $(BUILD_SHARED_LIBRARY)
